home *** CD-ROM | disk | FTP | other *** search
/ Champak 49 / Volume 49 - JOGO DISK .iso / Games / garus_getaway.swf / scripts / frame_2 / DoAction.as
Encoding:
Text File  |  2007-09-27  |  3.6 KB  |  118 lines

  1. var ┬º\x01┬º = 430;
  2. while(true)
  3. {
  4.    if(eval("\x01") == 430)
  5.    {
  6.       set("\x01",eval("\x01") - 14);
  7.       ┬º┬ºpush(true);
  8.    }
  9.    else
  10.    {
  11.       if(eval("\x01") == 707)
  12.       {
  13.          set("\x01",eval("\x01") + 141);
  14.          nextFrame();
  15.          toggleHighQuality();
  16.          play();
  17.          ┬º┬ºpush(┬º┬ºpop() add ┬º┬ºpop());
  18.          break;
  19.       }
  20.       if(eval("\x01") == 112)
  21.       {
  22.          set("\x01",eval("\x01") + 231);
  23.          ┬º┬ºpush(┬º┬ºpop() | {});
  24.          break;
  25.       }
  26.       if(eval("\x01") == 611)
  27.       {
  28.          set("\x01",eval("\x01") - 499);
  29.          if(┬º┬ºpop())
  30.          {
  31.             set("\x01",eval("\x01") + 231);
  32.          }
  33.       }
  34.       else
  35.       {
  36.          if(eval("\x01") == 343)
  37.          {
  38.             set("\x01",eval("\x01") + 401);
  39.             var mainSound = new Sound(this);
  40.             mainSound.setVolume(100);
  41.             var noodleFall_snd = new Sound(this);
  42.             noodleFall_snd.attachSound("noodle_falling");
  43.             var blowKiss_snd = new Sound(this);
  44.             blowKiss_snd.attachSound("blow_kiss");
  45.             var noodlePop_snd = new Sound(this);
  46.             noodlePop_snd.attachSound("noodle_pop");
  47.             var heartPop_snd = new Sound(this);
  48.             heartPop_snd.attachSound("heart_pop");
  49.             var heartHit_snd = new Sound(this);
  50.             heartHit_snd.attachSound("heart_hit");
  51.             var noodleHit_snd = new Sound(this);
  52.             noodleHit_snd.attachSound("noodle_hit");
  53.             var jump_snd = new Sound(this);
  54.             jump_snd.attachSound("jump");
  55.             var ninja_snd = new Sound(this);
  56.             ninja_snd.attachSound("ninja");
  57.             var score_snd = new Sound(this);
  58.             score_snd.attachSound("score");
  59.             var lostLife_snd = new Sound(this);
  60.             lostLife_snd.attachSound("lost_life");
  61.             var easterEgg_snd = new Sound(this);
  62.             easterEgg_snd.attachSound("easter_egg");
  63.             var eggFall_snd = new Sound(this);
  64.             eggFall_snd.attachSound("egg_falling");
  65.             var bonusScore_snd = new Sound(this);
  66.             bonusScore_snd.attachSound("bonus_score");
  67.             var titleMusic_snd = new Sound(this);
  68.             titleMusic_snd.attachSound("title_music");
  69.             var gameMusic_snd = new Sound(this);
  70.             gameMusic_snd.attachSound("game_music");
  71.             var endMusic_snd = new Sound(this);
  72.             endMusic_snd.attachSound("title_music");
  73.             var button_snd = new Sound(this);
  74.             button_snd.attachSound("button");
  75.             startMusic = function(_play, _type)
  76.             {
  77.                titleMusic_snd.stop();
  78.                gameMusic_snd.stop();
  79.                if(_play)
  80.                {
  81.                   switch(_type)
  82.                   {
  83.                      case 1:
  84.                         titleMusic_snd.start(0,9999);
  85.                         break;
  86.                      case 2:
  87.                         gameMusic_snd.start(0,9999);
  88.                   }
  89.                }
  90.             };
  91.             Button.prototype.onPress = function()
  92.             {
  93.                button_snd.start();
  94.             };
  95.             startMusic(true,1);
  96.             break;
  97.          }
  98.          if(eval("\x01") == 416)
  99.          {
  100.             set("\x01",eval("\x01") + 291);
  101.             if(┬º┬ºpop())
  102.             {
  103.                set("\x01",eval("\x01") + 141);
  104.             }
  105.          }
  106.          else
  107.          {
  108.             if(eval("\x01") != 848)
  109.             {
  110.                break;
  111.             }
  112.             set("\x01",eval("\x01") - 237);
  113.             ┬º┬ºpush(true);
  114.          }
  115.       }
  116.    }
  117. }
  118.